]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st: Fix signed-unsigned comparisons
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 17:57:42 +0000 (19:57 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Sep 2015 19:32:50 +0000 (21:32 +0200)
src/st/st-drawing-area.c
src/st/st-private.c
src/st/st-theme-node-drawing.c
src/st/st-widget.c

index 5faf7dd8c7671e4802c6322352ce673a9b0a1f0f..f64a5354fc6013f708cf943cd104b2c18f4753cd 100644 (file)
@@ -94,8 +94,8 @@ st_drawing_area_paint (ClutterActor *self)
     }
 
   if (priv->texture != NULL &&
-      (width != cogl_texture_get_width (priv->texture) ||
-       height != cogl_texture_get_height (priv->texture)))
+      (width != (int)cogl_texture_get_width (priv->texture) ||
+       height != (int)cogl_texture_get_height (priv->texture)))
     {
       cogl_object_unref (priv->texture);
       priv->texture = NULL;
index f48e1a51495fb85235bcc50c767403a88bf3929f..f27955c8dfb6e40271334dd8370a714b3917b504 100644 (file)
@@ -211,7 +211,7 @@ calculate_gaussian_kernel (gdouble   sigma,
 {
   gdouble *ret, sum;
   gdouble exp_divisor;
-  gint half, i;
+  guint half, i;
 
   g_return_val_if_fail (sigma > 0, NULL);
 
index 9fe213149fe08106b753061d13bbb5c3c6714c64..be2aa550db35de8a85143ffa5130fddf7c858116 100644 (file)
@@ -960,7 +960,7 @@ st_theme_node_prerender_background (StThemeNode *node,
   gboolean draw_background_image_shadow = FALSE;
   gboolean has_visible_outline;
   ClutterColor border_color;
-  int border_width[4];
+  guint border_width[4];
   guint rowstride;
   guchar *data;
   ClutterActorBox actor_box;
@@ -1588,10 +1588,10 @@ st_theme_node_paint_borders (StThemeNodePaintState *state,
 {
   StThemeNode *node = state->node;
   float width, height;
-  int border_width[4];
+  guint border_width[4];
   guint border_radius[4];
-  int max_border_radius = 0;
-  int max_width_radius[4];
+  guint max_border_radius = 0;
+  guint max_width_radius[4];
   int corner_id, side_id;
   ClutterColor border_color;
   guint8 alpha;
index 7fd8310eabe570767c4fbbab9d1a45ab1664ccbe..ebdc3392d1dbae89f1ccb72dcf486ca46f530035 100644 (file)
@@ -349,7 +349,7 @@ static void
 st_widget_finalize (GObject *gobject)
 {
   StWidgetPrivate *priv = ST_WIDGET (gobject)->priv;
-  int i;
+  guint i;
 
   g_free (priv->style_class);
   g_free (priv->pseudo_class);
@@ -1495,7 +1495,7 @@ static void
 st_widget_init (StWidget *actor)
 {
   StWidgetPrivate *priv;
-  int i;
+  guint i;
 
   actor->priv = priv = ST_WIDGET_GET_PRIVATE (actor);
   priv->transition_animation = NULL;